package com.lx.gulimall.product.feign.fallback;

import com.lx.common.exception.BizCodeEnum;
import com.lx.common.utils.R;
import com.lx.gulimall.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @author lixun Email:lx3027@126.com
 * @create 2021-08-23 10:19
 */
@Component
public class SecKillServiceFeignFallback implements SeckillFeignService {

    @Override
    public R getSkuSeckillInfo(Long skuId) {
        return R.error(BizCodeEnum.TOO_MANY_REQUEST.getCode(),BizCodeEnum.TOO_MANY_REQUEST.getMsg());
    }

}
